#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main() {
	int a, b, i;

	scanf("%d %d", &a, &b);
	int mul = a * b;

	while (i=a % b) {
		a = b;
		b = i;
	}
	int c = mul / b;
	printf("%d", c);

	return 0;
}